package org.ainlolcat.ainscience.metaentity;

import org.ainlolcat.ainscience.templates.Template;
import org.ainlolcat.ainscience.tools;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 12/8/11
 * Time: 8:51 AM
 * To change this template use File | Settings | File Templates.
 */
public class MultifileMetaEntity implements MetaEntity{
    private Template template;
    private String type;
    private Integer ID;
    private String name;
    private String path;
    private boolean isPersistent = true;

    public MultifileMetaEntity(String type, String path, Template template){
        this.type = type;
        this.template = template;
        this.path = path;
        ID = tools.generateID();
    }

    public boolean isPersistent(){
        return isPersistent;
    }
    public void setPersistent(boolean pers){
        isPersistent = pers;
    }

    public String getPath(){
        return path;
    }

    public MetaEntityParser getParser() {
        return new MultifileMetaEntityParser();
    }

    public JPanel getRenderer() {
        return null;
    }

    public Template getTemplate() {
        return template;
    }

    public String getType() {
        return type;
    }

    public void setID(Integer id) {
        this.ID = id;
    }

    public Integer getID() {
        return ID;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
